package com.cskaoyan.controller.wxcontroller;

import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.chaosbean.home.HomeIndexVo;
import com.cskaoyan.service.wxservice.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dengqwe
 * @datetime 2023/1/1 16:17
 * @description: TODO:
 */

/**
 *
 */
@RestController
@RequestMapping("wx/home")
public class HomeWeChatController {
    @Autowired
    HomeService homeService;
    @RequestMapping(value = "index")
    public BaseRespVo index() {
        HomeIndexVo date = homeService.index();
        return BaseRespVo.okYa(date);
    }
}
